#ifndef CATALOG_H_
#define CATALOG_H_

#define CODE_SIZE 16
#define DENOM_SIZE 64

typedef struct Article Article;

struct Article {
    char code[CODE_SIZE];
    char denom[DENOM_SIZE];
    float price;
};

void catalog_add(Article *art);
Article *catalog_parse(const char *line);
void catalog_read(const char *fpath);
void catalog_save(const char *fpath);
void catalog_free();

#endif //CATALOG_H_
